package co.yixiang.yshop.module.product.convert.storeproductrelation;

import co.yixiang.yshop.framework.common.pojo.PageResult;
import co.yixiang.yshop.module.product.api.productrelation.AppStoreProductRelationQueryDTO;
import co.yixiang.yshop.module.product.controller.admin.storeproductrelation.vo.StoreProductRelationRespVO;
import co.yixiang.yshop.module.product.controller.app.relation.vo.AppStoreProductRelationQueryVo;
import co.yixiang.yshop.module.product.dal.dataobject.storeproductrelation.StoreProductRelationDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 商品点赞和收藏 Convert
 *
 * @author yshop
 */
@Mapper
public interface StoreProductRelationConvert {

    StoreProductRelationConvert INSTANCE = Mappers.getMapper(StoreProductRelationConvert.class);

    StoreProductRelationRespVO convert(StoreProductRelationDO bean);

    List<StoreProductRelationRespVO> convertList(List<StoreProductRelationDO> list);

    PageResult<StoreProductRelationRespVO> convertPage(PageResult<StoreProductRelationDO> page);


    List<AppStoreProductRelationQueryDTO> convertList2(List<AppStoreProductRelationQueryVo> appStoreProductRelationQueryVos);
}
